package web.form;

import service.configuration.FieldType;
import entities.Status;

public class Item {
	
	private String key;
	private String label;
	private String info;
	private String value;
	private FieldType type;
	private boolean readOnly;
	private boolean obligatory;
	Status status;
	
	
	public Item() {
	}
	
	public Item(String key, String label, String info, boolean readOnly, boolean obligatory, String value, FieldType type) {
		this.key = key;
		this.label = label;
		this.info = info;
		this.value = value;
		this.type = type;
		this.readOnly = readOnly;
		this.setObligatory(obligatory);
	}
	
	
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Status getStatus() {
		return status;
	}
	public void setStatus(Status status) {
		this.status = status;
	}
	public FieldType getType() {
		return type;
	}
	public void setType(FieldType type) {
		this.type = type;
	}
	public boolean isReadOnly() {
		return readOnly;
	}
	public void setReadOnly(boolean readOnly) {
		this.readOnly = readOnly;
	}
	public boolean isObligatory() {
		return obligatory;
	}
	public void setObligatory(boolean obligatory) {
		this.obligatory = obligatory;
	}
}
